using System.Collections.Generic;
using System.Linq;

namespace NerdDinnerDataComponent
{
    public interface IDinnerRepository
    {
        IList<DinnerInfo> FindUpcomingDinners();
        PaginatedDinnerInfoResultList FindUpcomingDinners(int pageIndex, int pageSize);
        IList<DinnerInfo> FindDinnersByText(string q);
        IList<DinnerInfo> FindAllDinners();
        DinnerInfo GetDinner(int id);
       
       
       
        IList<DinnerViewInfo> FindByLocation(float latitude, float longitude);
        void Delete(int dinnerId);
        void RegisterForDinner(int dinnerId, string userName);
        int CreateDinner(DinnerInfo dinner);
        void UpdateDinner(DinnerInfo dinner);
    }
}